﻿@Echo Off
@Echo Grant permissions for URL reservation
@Echo Parameter 1 "%1" == port
@Echo Parameter 2 "%2" == URL

set u=%2
set p=%1

rem if /z "%u" 
set /p u="url:"
rem if /z "%p" 
set /p p="port:"

netsh http add urlacl url=http://+:%u%/%p% user=%USERDOMAIN%\%USERNAME%